//
//  BanJiKeShiHeaderView.m
//  SanYiTeaching
//
//  Created by 李文强 on 2019/4/15.
//  Copyright © 2019 SanYi. All rights reserved.
//

#import "BanJiKeShiHeaderView.h"

@implementation BanJiKeShiHeaderView
- (instancetype)initWithFrame:(CGRect)frame{
    if ([super initWithFrame:frame]) {
        [self initSubView];
    }
    return self;
}
- (void)initSubView{
    [self addSubview:self.banJiKeShiView];
    [_banJiKeShiView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@0);
        make.right.equalTo(@0);
        make.top.equalTo(@0);
        make.bottom.equalTo(@0);
    }];
}
- (BanJiKeShiTopView *)banJiKeShiView{
    if (!_banJiKeShiView) {
        BanJiKeShiTopView *view = [[BanJiKeShiTopView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, 131)];
        view.backgroundColor = [UIColor whiteColor];
        _banJiKeShiView = view;
    }
    return _banJiKeShiView;
}
@end
